package org.six11.ss.server;

import java.io.IOException;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.six11.util.adt.MultiState;

/**
 * A simple implementation of WebActionHandler that simply forwards to the provided jsp page.
 *
 * @author Gabe Johnson <johnsogg@cmu.edu>
 */
public class DefaultWebActionHandler extends WebActionHandler {

  public DefaultWebActionHandler(String actionName, String jsp, MultiState ms) {
    super(actionName, jsp, ms);
  }

  /**
   * Forwards the request to the jsp page.
   */
  @Override
  public void handle(HttpServletRequest req, HttpServletResponse resp, ServletContext context)
      throws ServletException, IOException {
    forwardTo(jsp, req, resp, context);
  }

}
